package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/hello")
@Slf4j
public class HelloController {
    @Autowired
    private Test test;

    @Autowired
    private Service1 service1;
    @GetMapping("/retrofit")
    public void testForRetrofit() {
        log.info("{}:{}", test, test.integer);
//        test.integer++;
        service1.change();
        log.info("after service:{}:{}", test, test.integer);
        return;
    }
}
